# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=asteroid
pkgname=asteroid-calendar
pkgver=2.0.0
pkgrel=0
pkgdesc="Default calendar app for AsteroidOS"
url="https://github.com/AsteroidOS/asteroid-calendar"
# armhf blocked by nemo-qml-plugin-calendar
arch="all !armhf"
license="GPL-3.0-or-later"
depends="
	mapplauncherd
	nemo-qml-plugin-calendar
	nemo-qml-plugin-time
	qt5-qtvirtualkeyboard
	"
makedepends="
	extra-cmake-modules
	qml-asteroid-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	samurai
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/AsteroidOS/asteroid-calendar/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c4515928cef970c099a72fa468fa92fe213518946f46af1382e6b983ade66a9bebcc466a9dbf3842fb5f64704169ea0ca616734da30e6f3eaa256cf2ff8cdab0  asteroid-calendar-2.0.0.tar.gz
"
